import leveldb
db = leveldb.LevelDB('./db')
db.Put(b'hello', b'world')
db.Put(b'key', b'value')
val = db.Get(b'hello')
print(val)